package com.mc.dynamicproxy;

import java.lang.reflect.Proxy;

public class Client {
	
	public static void main(String[] args) {
		FooImpl target = new FooImpl();
		Foo proxy = (Foo)Proxy.newProxyInstance(Foo.class.getClassLoader(), new Class[]{Foo.class}, new DynamicProxy(target));
		proxy.doSomething();
	}
}
